package edu.ynu.hhy.architectureclass.entity;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TokenResponse {
    private String accessToken; // 访问令牌
    private Long expiresIn;     // 过期时间（秒）
    private String tokenType;   // 令牌类型
    private String scope;       // 权限范围

    // 无参构造函数
    public TokenResponse() {
    }

    // 全参构造函数
    public TokenResponse(String accessToken, Long expiresIn, String tokenType, String scope) {
        this.accessToken = accessToken;
        this.expiresIn = expiresIn;
        this.tokenType = tokenType;
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "TokenResponse{" +
                "accessToken='" + accessToken + '\'' +
                ", expiresIn=" + expiresIn +
                ", tokenType='" + tokenType + '\'' +
                ", scope='" + scope + '\'' +
                '}';
    }
}
